<div class="fsh-pop">
    <div id="add_form" class="layui-form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>学校</label>
                <div class="layui-input-block">
                    <input type="hidden" name="squad_id" value="<%=squad_id||0%>">
                    <input id="_schoolName2" type="text" name="schoolName" readonly lay-verify="" placeholder="请选择"
                           value="<%=schoolName||''%>"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>代码</label>
                <div class="layui-input-block">
                    <input id="_schoolCode2" type="text" name="schoolCode" readonly lay-verify="required" placeholder="请选择"
                           value="<%=schoolCode||''%>"
                           class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>专业</label>
                <div class="layui-input-block">
                    <input id="_speName" type="text" name="speciality_name" readonly lay-verify="" placeholder="请输入关键字" class="layui-input"
                           value="<%=pid||'顶级'%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>专业代码</label>
                <div class="layui-input-block">
                    <input id="_speCode" type="text" name="speciality_id" readonly class="layui-input" value="<%=speciality_id||0%>">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>班级名称</label>
                <div class="layui-input-block">
                    <input type="text" name="squad_name" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="<%=squad_name%>">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>入学时间</label>
                <div class="layui-input-block">
                    <input lay-verify="" placeholder="请输入内容" class="layui-input" id="startTime" readonly
                           name="startSchool"  value="<%=squad_name%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>毕业时间</label>
                <div class="layui-input-block">
                    <input lay-verify="" placeholder="请输入内容" class="layui-input" name="graduation" readonly
                           id="endTime"  value="<%=graduation%>">
                </div>
            </div>
        </div>
    </div>

</div>
<style type="text/css">
</style>
<script type="text/javascript">
    layui.use(['table', 'laydate', 'form'], function () {
        var table = layui.table;
        var layDate = layui.laydate;
        var form = layui.form;

        //开始日期
        layDate.render({elem: '#startTime'});
        layDate.render({elem: '#endTime'});
        //是否毕业
        form.on('switch(switchTest)', function (data) {
            $('#status').val(this.checked ? 1 : 0);
        });

        // 选择学校
        // selectSchool('_schoolName2','_schoolCode2');
        //选择专业
        selectSpe({schoolCode: "<%=schoolCode||''%>"});
        //选择老师
    });
</script>
